<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>kisebo: Código-Fonte de F:/Projetos/Rodrigo/kisebo/src/kisebo/Usuario.h</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Gerado por Doxygen 1.5.7.1 -->
<script type="text/javascript">
<!--
function changeDisplayState (e){
  var num=this.id.replace(/[^[0-9]/g,'');
  var button=this.firstChild;
  var sectionDiv=document.getElementById('dynsection'+num);
  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
    sectionDiv.style.display='block';
    button.src='open.gif';
  }else{
    sectionDiv.style.display='none';
    button.src='closed.gif';
  }
}
function initDynSections(){
  var divs=document.getElementsByTagName('div');
  var sectionCounter=1;
  for(var i=0;i<divs.length-1;i++){
    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
      var header=divs[i];
      var section=divs[i+1];
      var button=header.firstChild;
      if (button!='IMG'){
        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
        button=document.createElement('img');
        divs[i].insertBefore(button,divs[i].firstChild);
      }
      header.style.cursor='pointer';
      header.onclick=changeDisplayState;
      header.id='dynheader'+sectionCounter;
      button.src='closed.gif';
      section.id='dynsection'+sectionCounter;
      section.style.display='none';
      section.style.marginLeft='14px';
      sectionCounter++;
    }
  }
}
window.onload = initDynSections;
-->
</script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Página&nbsp;Principal</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Arquivos</span></a></li>
      <li><a href="dirs.html"><span>Diretórios</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;de&nbsp;Arquivos</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_e5fb231306b426dbf7288f735af63cb9.html">src</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_8c0497d54df0514193af848d7b3013ef.html">kisebo</a>
  </div>
</div>
<div class="contents">
<h1>Usuario.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef USUARIO_H_</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define USUARIO_H_</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include "Interesse.h"</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include "Livro.h"</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include "../estruturas/Lista.h"</span>
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 <span class="keyword">using namespace </span>std;
<a name="l00012"></a>00012 
<a name="l00027"></a><a class="code" href="class_usuario.html">00027</a> <span class="keyword">class </span><a class="code" href="class_usuario.html" title="Classe para controle de usuario. A classe Usuario é um detalhamento das pessoas...">Usuario</a>
<a name="l00028"></a>00028 {
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="keyword">public</span>:
<a name="l00031"></a>00031 
<a name="l00038"></a><a class="code" href="class_usuario.html#b4f1edcf89cdecca6f55a1367f18608b">00038</a>         <span class="keyword">enum</span> <a class="code" href="class_usuario.html#b4f1edcf89cdecca6f55a1367f18608b" title="Enumerator com o tipo do usuário logado. Enumerator para controlar o tipo do usuário...">ENUM_TIPO</a> {
<a name="l00042"></a><a class="code" href="class_usuario.html#b4f1edcf89cdecca6f55a1367f18608bd94b28c683eeb32f97bf2f7c1b3b91df">00042</a>                 <a class="code" href="class_usuario.html#b4f1edcf89cdecca6f55a1367f18608bd94b28c683eeb32f97bf2f7c1b3b91df">CLIENTE</a> = 1,
<a name="l00043"></a>00043 
<a name="l00047"></a><a class="code" href="class_usuario.html#b4f1edcf89cdecca6f55a1367f18608bb3bdd01ded265ca12f50ba8570ba4610">00047</a>                 <a class="code" href="class_usuario.html#b4f1edcf89cdecca6f55a1367f18608bb3bdd01ded265ca12f50ba8570ba4610">FUNCIONARIO</a> = 2
<a name="l00048"></a>00048         };
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 <span class="keyword">private</span>:
<a name="l00051"></a>00051 
<a name="l00055"></a><a class="code" href="class_usuario.html#e04418b8ae8f0185402e8bbb555b2993">00055</a>         <span class="keywordtype">long</span> <a class="code" href="class_usuario.html#e04418b8ae8f0185402e8bbb555b2993">id</a>;
<a name="l00056"></a>00056 
<a name="l00060"></a><a class="code" href="class_usuario.html#822d91d77f33cbde8fa864b610ca2208">00060</a>         <span class="keywordtype">string</span> <a class="code" href="class_usuario.html#822d91d77f33cbde8fa864b610ca2208">login</a>;
<a name="l00061"></a>00061 
<a name="l00065"></a><a class="code" href="class_usuario.html#d95dd727e10bde4e0066d79caace01a7">00065</a>         <a class="code" href="class_usuario.html#b4f1edcf89cdecca6f55a1367f18608b" title="Enumerator com o tipo do usuário logado. Enumerator para controlar o tipo do usuário...">ENUM_TIPO</a> <a class="code" href="class_usuario.html#d95dd727e10bde4e0066d79caace01a7">tipoUsuario</a>;
<a name="l00066"></a>00066 
<a name="l00070"></a><a class="code" href="class_usuario.html#99d6b6876b9118121cb9171dde26cc44">00070</a>         <span class="keywordtype">string</span> <a class="code" href="class_usuario.html#99d6b6876b9118121cb9171dde26cc44">senha</a>;
<a name="l00071"></a>00071 
<a name="l00075"></a><a class="code" href="class_usuario.html#655a3a99ebc056372a1653e9203b2b50">00075</a>         <span class="keywordtype">string</span> <a class="code" href="class_usuario.html#655a3a99ebc056372a1653e9203b2b50">nome</a>;
<a name="l00076"></a>00076 
<a name="l00080"></a><a class="code" href="class_usuario.html#115f25bb713b18c52cea56622d401c8a">00080</a>         <span class="keywordtype">string</span> <a class="code" href="class_usuario.html#115f25bb713b18c52cea56622d401c8a">cep</a>;
<a name="l00081"></a>00081 
<a name="l00085"></a><a class="code" href="class_usuario.html#7ba302814ad13cf6109d4ab2acda2ecf">00085</a>         <span class="keywordtype">string</span> <a class="code" href="class_usuario.html#7ba302814ad13cf6109d4ab2acda2ecf">endereco</a>;
<a name="l00086"></a>00086 
<a name="l00090"></a><a class="code" href="class_usuario.html#d1fb9c597504e64d0d65fa08e6baf3ab">00090</a>         <span class="keywordtype">string</span> <a class="code" href="class_usuario.html#d1fb9c597504e64d0d65fa08e6baf3ab">complemento</a>;
<a name="l00091"></a>00091 
<a name="l00095"></a><a class="code" href="class_usuario.html#14a1a592c5d7f9fdeb4bd2e6cd81e37b">00095</a>         <span class="keywordtype">string</span> <a class="code" href="class_usuario.html#14a1a592c5d7f9fdeb4bd2e6cd81e37b">telefone</a>;
<a name="l00096"></a>00096 
<a name="l00100"></a><a class="code" href="class_usuario.html#073b1e297defaf3fb3f70898d00df2e0">00100</a>         vector&lt;Interesse&gt; <a class="code" href="class_usuario.html#073b1e297defaf3fb3f70898d00df2e0">interesses</a>;
<a name="l00101"></a>00101 
<a name="l00105"></a><a class="code" href="class_usuario.html#ef49055c540e8ebb89247c61fac09b69">00105</a>         vector&lt;Livro&gt; <a class="code" href="class_usuario.html#ef49055c540e8ebb89247c61fac09b69">livrosDeInteresse</a>;
<a name="l00106"></a>00106 
<a name="l00107"></a>00107 <span class="keyword">public</span>:
<a name="l00108"></a>00108 
<a name="l00115"></a>00115         <a class="code" href="class_usuario.html#a85a5371a098dfba5449140d9b8a472f" title="Cria uma instancia padrão Esse método cria uma instancia do Usuario,   lembrando...">Usuario</a>();
<a name="l00116"></a>00116 
<a name="l00124"></a>00124         <a class="code" href="class_usuario.html#a85a5371a098dfba5449140d9b8a472f" title="Cria uma instancia padrão Esse método cria uma instancia do Usuario,   lembrando...">Usuario</a>(<span class="keyword">const</span> <a class="code" href="class_usuario.html" title="Classe para controle de usuario. A classe Usuario é um detalhamento das pessoas...">Usuario</a> &amp;_copia);
<a name="l00125"></a>00125 
<a name="l00132"></a>00132         <span class="keyword">virtual</span> <a class="code" href="class_usuario.html#b4096b0b8300ecb47b10c555fb09c997" title="Destrutor da entidade Utilizado para liberar espaço na mémoria, eliminando a instancia...">~Usuario</a>();
<a name="l00133"></a>00133 
<a name="l00140"></a>00140         <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#57d372143c6b2693b6bfd26bb57953ab" title="Inserir um interesse na lista de interesses.">AdicionaInteresse</a>(<a class="code" href="class_interesse.html" title="Classe para controle dos Interesses.   Utilizar uma pesquisa por interesse, dessa...">Interesse</a> _interesse);
<a name="l00141"></a>00141 
<a name="l00148"></a>00148         <a class="code" href="class_interesse.html" title="Classe para controle dos Interesses.   Utilizar uma pesquisa por interesse, dessa...">Interesse</a> <a class="code" href="class_usuario.html#c1f167bcd261160bf0bb4f052faaad2c" title="Um interesse selecionado na lista de interesses.">GetInteresse</a>(<span class="keywordtype">int</span> _posicao);
<a name="l00149"></a>00149 
<a name="l00155"></a>00155         <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#e32eb2ed09b13f494418045a7840c67c" title="Inserir um livro na lista de livros.">AdicionaLivroDeInteresse</a>(<a class="code" href="class_livro.html" title="Classe para controle dos livros.   Principal elemento do sistema.">Livro</a> _livro);
<a name="l00156"></a>00156 
<a name="l00162"></a>00162         <a class="code" href="class_livro.html" title="Classe para controle dos livros.   Principal elemento do sistema.">Livro</a> <a class="code" href="class_usuario.html#454d6df55edcb9ae7a563e78ec4eba53" title="Retorna um liro da lista de livros do usuário.">GetLivroDeInteresse</a>(<span class="keywordtype">int</span> _posicao);
<a name="l00163"></a>00163 
<a name="l00169"></a>00169         <span class="keywordtype">long</span> <a class="code" href="class_usuario.html#3f29b42b1de7a74fced64f226defa786" title="Retorna o código de identificação do usuário.">GetID</a>();
<a name="l00170"></a>00170 
<a name="l00176"></a>00176         <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#34a9054883669d33e81a559273da385b" title="Inserir o código de identificação.">SetID</a>( <span class="keywordtype">long</span> _id);
<a name="l00177"></a>00177 
<a name="l00183"></a>00183         <span class="keywordtype">string</span> <a class="code" href="class_usuario.html#54ba052be451a6e689d5fb95291f21fe" title="Retorna o login de acesso utilizado pelo usuário.">GetLogin</a>();
<a name="l00184"></a>00184 
<a name="l00190"></a>00190         <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#24bc5c2ba7cd017bfc368e3e5b3aed51" title="Inserir o login de acesso.">SetLogin</a>( <span class="keywordtype">string</span> _login);
<a name="l00191"></a>00191 
<a name="l00197"></a>00197         <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#f291d6237b5ac14a55e34761ec11a7d6" title="Inserir a senha do usuário.">SetSenha</a>( <span class="keywordtype">string</span> _senha);
<a name="l00198"></a>00198 
<a name="l00205"></a>00205     <a class="code" href="class_usuario.html#b4f1edcf89cdecca6f55a1367f18608b" title="Enumerator com o tipo do usuário logado. Enumerator para controlar o tipo do usuário...">ENUM_TIPO</a> <a class="code" href="class_usuario.html#8daed537e5d9e650e8895a2f038101d6" title="Retorna o tipo de usuário.">GetTipoUsuario</a>();
<a name="l00206"></a>00206 
<a name="l00213"></a>00213     <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#c4de8f4a0eaa9764f348c934f2caaaba" title="Inserir o tipo do usuário.">SetTipoUsuario</a>(<a class="code" href="class_usuario.html#b4f1edcf89cdecca6f55a1367f18608b" title="Enumerator com o tipo do usuário logado. Enumerator para controlar o tipo do usuário...">ENUM_TIPO</a> _tipoUsuario);
<a name="l00214"></a>00214 
<a name="l00220"></a>00220     <span class="keywordtype">string</span> <a class="code" href="class_usuario.html#39534698541ca25dca335aa79ef6e42f" title="Retorna o nome do usuário.">GetNome</a>();
<a name="l00221"></a>00221 
<a name="l00227"></a>00227     <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#fc5514d9edf79eed20061c359529dde6" title="Inserir o nome do usuário.">SetNome</a>(<span class="keywordtype">string</span> _nome);
<a name="l00228"></a>00228 
<a name="l00234"></a>00234     <span class="keywordtype">string</span> <a class="code" href="class_usuario.html#7d67fd32a7a127d1eb54e057e82c4daf" title="Retorna o cep do endereço.">GetCep</a>();
<a name="l00235"></a>00235 
<a name="l00241"></a>00241     <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#ceb231c11da4489a1c4a8c4712001b59" title="Inserir o cep do endereço do usuário.">SetCep</a>(<span class="keywordtype">string</span> _cep);
<a name="l00242"></a>00242 
<a name="l00248"></a>00248     <span class="keywordtype">string</span> <a class="code" href="class_usuario.html#289f13b38910693ee37930f0aa522e09" title="Retorna o endereço do usuario.">GetEndereco</a>();
<a name="l00249"></a>00249 
<a name="l00255"></a>00255     <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#d69f0b234abb79545f31bb2ba8e8f426" title="Inserir o endereço do usuário.">SetEndereco</a>(<span class="keywordtype">string</span> _endereco);
<a name="l00256"></a>00256 
<a name="l00262"></a>00262     <span class="keywordtype">string</span> <a class="code" href="class_usuario.html#2529bb6d3b05d795782a4d716fb8b99e" title="Retorna o complemento do endereço do usuário.">GetComplemento</a>();
<a name="l00263"></a>00263 
<a name="l00269"></a>00269     <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#71405e54fcc05a21a38d84e5ab0d4b8b" title="Inserir o complemento do endereço do usuário.">SetComplemento</a>(<span class="keywordtype">string</span> _complemento);
<a name="l00270"></a>00270 
<a name="l00276"></a>00276     <span class="keywordtype">string</span> <a class="code" href="class_usuario.html#56ade81a28bb19ac817a2811c9c2f075" title="Retorna o telefone do usuário.">GetTelefone</a>();
<a name="l00277"></a>00277 
<a name="l00283"></a>00283     <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#847d76c46539e644944a2e052aa9fac6" title="Inserir o telefone do usuário.">SetTelefone</a>(<span class="keywordtype">string</span> _telefone);
<a name="l00284"></a>00284 
<a name="l00292"></a>00292     <span class="keyword">friend</span> ostream&amp; <a class="code" href="class_usuario.html#f5ac64d2c78a20ba593f38d7e5e631b8" title="Sobrescreve a impressão da entidade Usuario.">operator&lt;&lt;</a>(ostream &amp;_out, <span class="keyword">const</span> <a class="code" href="class_usuario.html" title="Classe para controle de usuario. A classe Usuario é um detalhamento das pessoas...">Usuario</a> &amp;_usuario);
<a name="l00293"></a>00293 
<a name="l00301"></a>00301     <span class="keyword">friend</span> ostream&amp; <a class="code" href="class_usuario.html#f5ac64d2c78a20ba593f38d7e5e631b8" title="Sobrescreve a impressão da entidade Usuario.">operator&lt;&lt;</a>(ostream &amp;_out, <span class="keyword">const</span> <a class="code" href="class_usuario.html#b4f1edcf89cdecca6f55a1367f18608b" title="Enumerator com o tipo do usuário logado. Enumerator para controlar o tipo do usuário...">ENUM_TIPO</a> &amp;_tipo);
<a name="l00302"></a>00302 
<a name="l00303"></a>00303 };
<a name="l00304"></a>00304 
<a name="l00305"></a>00305 <span class="preprocessor">#endif </span><span class="comment">/*USUARIO_H_*/</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Gerado em Wed Dec 3 04:35:41 2008 para kisebo por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.7.1 </small></address>
</body>
</html>
